# Django settings for onecall project.
from os.path import normpath,join,dirname

DEBUG = True
TEMPLATE_DEBUG = DEBUG

ADMINS = (
    # ('Your Name', 'your_email@domain.com'),
)

MANAGERS = ADMINS

DATABASE_ENGINE = 'firebird'
DATABASE_NAME = 'c:\db\onecall_new.fdb'
DATABASE_USER = 'SYSDBA'
DATABASE_PASSWORD = 'masterkey'
DATABASE_HOST = 'localhost'
DATABASE_PORT = ''
DEFAULT_CHARSET = 'utf8'


TIME_ZONE = 'Europe/Moscow'
LANGUAGE_CODE = 'ru-RU'
SITE_ID = 1
USE_I18N = True
MEDIA_ROOT = ''
MEDIA_URL = ''
ADMIN_MEDIA_PREFIX = '/media/'
SECRET_KEY = '_5m&zi2c82h6daf^738y+djmzyhof#3bhyc#+=v9d6p96ar&fd'

TEMPLATE_LOADERS = (
    'django.template.loaders.filesystem.load_template_source',
    'django.template.loaders.app_directories.load_template_source',
#     'django.template.loaders.eggs.load_template_source',
)

MIDDLEWARE_CLASSES = (
    'django.middleware.common.CommonMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.middleware.transaction.TransactionMiddleware',
)

ROOT_URLCONF = 'onecall.urls'

TEMPLATE_DIRS = (
    normpath(join(dirname(__file__), 'templates').replace('\\','/')),
)

TEMP_DIR = normpath(join(dirname(__file__), 'temp').replace('\\','/'))

FILE_UPLOAD_TEMP_DIR = TEMP_DIR

FILE_UPLOAD_MAX_MEMORY_SIZE = 0

INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
#    'django.contrib.sites',
    'django.contrib.admin',
    'django.contrib.admindocs',
    'onecall',
    'onecall.references',    
    'onecall.kladr',        
    'onecall.main',        
    ##'onecall.books',
)
